package com.certification.service;

import com.certification.entity.CertAttachment;
import com.certification.vo.ResponseMessage;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

public interface CertAttachmentService {
    ResponseMessage<Integer> upload(MultipartFile multiFile, HttpSession session);

    ResponseMessage<CertAttachment> getFileInfo(Integer certStage, Integer attachmentId, Integer userId);

    ResponseEntity<byte[]> fileDownload(Integer certStage, Integer attachmentId, Integer userId, HttpSession session);

    ResponseEntity<byte[]> fileDownloadAdmin(Integer attachmentId, HttpSession session);

    ResponseMessage<Integer> uploadFile(String url, String originName);

    ResponseMessage<CertAttachment> getFileInfoAdmin(Integer attachmentId);
}
